﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nuzzle.Protocol.Messages.Game.Basic
{
    public class TextInformationMessage : NetworkMessage
    {
        public TextInformationMessage(byte msgType, short msgId, string[] parameters)
            : base(NetworkMessageID.TextInformationMessage)
        {
            base.WriterBuffer.writeByte(msgType);
            base.WriterBuffer.writeShort(msgId);
            base.WriterBuffer.writeShort((short)parameters.Length);
            foreach (var p in parameters)
            {
                base.WriterBuffer.writeUTF(p);
            }
        }
    }
}
